package com.hspedu.newData.dmsxl.数学技巧;
/**
 * @Author: yh
 * @description: 
 * @CreateTime: 2025-05-26 
 * @Version: 1.0
 */

public class LC172阶乘后的零 {

    public int trailingZeroes(int n) {

        int x = 5;
        int count = 0;
        while (n>x){
            count += n/x;
            x *= 5;
        }
        return count;
    }
}
